package com.ag.lwc.service;

import java.util.List;

import com.ag.bean.TbPropose;
import com.ag.bean.TbProposeRecord;
import com.ag.lwc.dao.MyProposeDAO;

/**
 * 事件的成批
 * @author user
 *
 */
public class EventProposeService 
{
	
	private MyProposeDAO proposedao;
	/**
	 * 根据事件查成批记录
	 * @param eventId
	 * @return
	 */
	public TbPropose findByEvent(String eventId)
	{
		return proposedao.findByEvent(eventId);
	}
	
	/**
	 * 根据成批查成批记录
	 * @param pid
	 * @return
	 */
	public List<TbProposeRecord> findProposeRecord(String pid)
	{
		System.out.println("EventProposeService: 成批表id： "+pid);
		return proposedao.findProposeRecord(pid);
	}

	public MyProposeDAO getProposedao() {
		return proposedao;
	}

	public void setProposedao(MyProposeDAO proposedao) {
		this.proposedao = proposedao;
	}
	
}
